25. Directives Quiz

Directives Quiz

Directives Quiz

Download the Angular Directives quiz!

The list of built-in Angular Directives.

Including a file with ng-include

ng-include is used to fetch, compile, and include external HTML code. It's used by passing the path to an HTML file:

 <div ng-include="name-of-folder/name-of-file.html"></div>

In the project, look at the app/index.html file for how I include all of the instructions from the instructions.html file.

QUESTION:

What is the secret code that appears?

SOLUTION:

NOTE: The solutions are expressed in RegEx pattern. Udacity uses these patterns to check the given answer

Erratum: Note that at 0:07, line 52's code should actually read:

<div ng-include="'views/storeFront.html'" ng-controller="legoStore as store"></div>

Solution

Directives Solution